﻿<div class="layui-row layui-col-space15">
    <div class="layui-col-md5">
        <div class="layui-card">
            <div class="layui-card-body">
                <div style="overflow: auto">
                    <ul id="tree" class="dtree"></ul>
                </div>
            </div>
        </div>
    </div>
    <div class="layui-col-md7">
        <div class="layui-card">
            <div class="layui-card-body">
                <form class="layui-form" lay-filter="form">
                    <div class="main-container">
                        <input type="hidden" id="id" name="id" value="0" />
                        <input type="hidden" id="parentId" name="parentId" value="0" />
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button type="button" class="pear-btn pear-btn-primary pear-btn-sm" id="addSibling"> <i class="layui-icon layui-icon-add-1"></i>新增同级</button>
                                <button type="button" class="pear-btn pear-btn-primary pear-btn-sm" id="addChild"> <i class="layui-icon layui-icon-add-1"></i>新增下级</button>
                                <button type="button" class="pear-btn pear-btn-danger pear-btn-sm" id="delete"> <i class="layui-icon layui-icon-delete"></i>删除</button>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">父级</label>
                            <div class="layui-input-block">
                                <input type="text" name="parentName" id="parentName" autocomplete="off" readonly="readonly" class="layui-input" lay-verify="required">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">分类号</label>
                            <div class="layui-input-block">
                                <input type="text" name="code" id="code" autocomplete="off" placeholder="请输入分类号名称" class="layui-input" lay-verify="required">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">名称</label>
                            <div class="layui-input-block">
                                <input type="text" name="name" id="name" autocomplete="off" placeholder="请输入分类名称" class="layui-input" lay-verify="required">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">排序</label>
                            <div class="layui-input-block">
                                <input type="number" name="sort" id="sort" autocomplete="off" placeholder="请输入排序" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button type="submit" class="pear-btn pear-btn-primary pear-btn-sm" lay-submit="" lay-filter="submit"> <i class="layui-icon layui-icon-ok"></i>提交</button>
                                <button type="reset" class="pear-btn pear-btn-sm"><i class="layui-icon layui-icon-refresh"></i>重置</button>
                            </div>
                        </div>
                    </div>

                </form>
            </div>
        </div>
    </div>
</div>
@section Styles{
<style>
    #tree {
        width: 100% !important;
        height: -webkit-calc(100vh - 40px);
        height: -moz-calc(100vh - 40px);
        height: calc(100vh - 40px);
    }
</style>
}